﻿#pragma once 

class ModelInfoClassFactory : public IClassFactory 
{ 
public: 
    // IUnknown 
    IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv); 
    IFACEMETHODIMP_(ULONG) AddRef(); 
    IFACEMETHODIMP_(ULONG) Release(); 
 
    // IClassFactory 
    IFACEMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppv); 
    IFACEMETHODIMP LockServer(BOOL fLock); 
 
    ModelInfoClassFactory(); 
 
protected: 
    ~ModelInfoClassFactory(); 
 
private: 
    long m_cRef; 
};